//
//  Utilities.h
//  CategoryDemo
//
//  Created by Pham Vu Duong on 5/22/12.
//  Copyright (c) 2012 CMC Software Solution Company Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#undef CLog

#if __cplusplus
extern "C" { 
#endif
    void CLog(NSString *format, ...);   
#if __cplusplus
}
#endif

typedef enum{
    DateStringCompareGreater,
    DateStringCompareEqual,
    DateStringCompareLesser
}DateStringCompare;

typedef enum
{
    UtilityFileSavingExisted,
    UtilityFileSavingSucceeded,
    UtilityFileSavingError
} UtilityMethodStatus;

@interface Utilities : NSObject

+ (NSString*)MD5Encodine:(NSString*)inputString;

+ (NSString*)Base64Encoding:(NSString*)inputString;

+(NSString*)uniqueStringWithPrefix:(NSString*)prefix;

+(void)getASyncUIImage:(NSString*)path
               success:(void (^)(UIImage* image))success
               failure:(void (^)(NSError *error))failure;


+(NSString *)getComparisionNowTimeWithDate:(NSString *)date;

+(DateStringCompare)compareDate:(NSString*)leftDateString withDate:(NSString*)rightDateString;

@end
